//
//  DataBase.h
//  BreadTravel
//
//  Created by 张健 on 16/1/4.
//  Copyright © 2016年 蓝鸥科技. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "FMDatabase.h"
#import "MineUserModel.h"
@interface DataBase : NSObject

@property(nonatomic,retain)FMDatabase *db;

+ (instancetype)shareDataBase;

-(void)openDB;

- (void)createUserTable;

- (void)insertUser:(NSString *)name password:(NSString *)password headImage:(NSData *)headImage;

-(void)dropTable;

-(NSMutableArray *)selectUserData:(NSString *)name;

@end
